package cn.itsource.ymcc.domain;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author whale
 * @since 2021-09-18
 */
@TableName("t_course_user_learn")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseUserLearn extends Model<CourseUserLearn> {

    private static final long serialVersionUID = 1L;

    private Long id;
    @TableField("login_id")
    private Long loginId;
    @TableField("start_time")
    private Date startTime;
    @TableField("end_time")
    private Date endTime;
    /**
     * 0已购买，1已过期
     */
    private Integer state;
    @TableField("course_id")
    private Long courseId;
    @TableField("course_order_no")
    private String courseOrderNo;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
